package com.itheima.day06;

import java.util.Collection;
import java.util.Collections;
import java.util.LinkedList;

public class Practice12 {
    public static void main(String[] args) {
        LinkedList<Integer> lkl = new LinkedList<>();
        Collections.addAll(lkl,32,2,4323,3,44432,33,55,5,67);

        lkl.push(334);
        lkl.push(4);
        lkl.push(34);
        System.out.println(lkl);

        Integer pop = lkl.pop();
        Integer pop1 = lkl.pop();
        Integer pop2 = lkl.pop();
        Integer pop3 = lkl.pop();
        Integer pop4 = lkl.pop();
        Integer pop5 = lkl.pop();
        Integer pop6 = lkl.pop();

        System.out.println(lkl);

    }
}
